﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SanPham/MasterPageSanPham.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="CapNhatSanPham.aspx.cs" Inherits="Admin_SanPham_CapNhatSanPham" Title="Cập nhật sản phẩm" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
 <div style="padding-right: 12px; padding-left: 12px; padding-bottom: 12px; padding-top: 12px">
        <div>
            <div class="title">
                Cập nhật sản phẩm
            </div>
            <div>
                <table bgcolor="#cccccc" border="0" cellpadding="3" cellspacing="1" width="100%">
                    <tr>
                        <td style="width: 34%">
                            Mã sản phẩm</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_MaSP" runat="server" EnableViewState="False"></asp:Literal>
                        </td>
                    </tr>
                     <tr>
                    <td style="width:30%">Tên sản phẩm</td>
                    <td style="width:70%"><asp:TextBox ID="txt_TenSP" runat="server"></asp:TextBox></td>
                </tr> 
                     <tr>
                    <td style="width:30%">
                        Danh mục</td>
                    <td style="width:70%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_DanhMuc" runat="server">
                        </asp:DropDownList></td>
                </tr>   
                <tr>
                    <td style="width:30%">
                        Doanh nghiệp</td>
                    <td style="width:70%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_DoanhNghiep" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>           
                 
                    <tr>
                    <td style="width:30%">
                        Giá gốc</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_GiaGoc" runat="server"></asp:TextBox></td>
                </tr>   
                   <tr>
                    <td style="width:30%">
                        Giá bán</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_GiaBan" runat="server"></asp:TextBox>
                    </td>
                </tr>   
                   <tr>
                    <td style="width:30%">
                        Ngày bắt đầu</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_NgayBatDau" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                
                 <tr>
                    <td style="width:30%">
                        Ngày hết hạn</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_NgayHetHan" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                    
                 <tr>
                    <td style="width:30%">
                        Số lượng bán</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_SoLuongBan" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                
                 <tr>
                    <td style="width:30%; height: 45px;">
                        Số lượng tối đa</td>
                    <td style="width:70%; height: 45px;">
                        <asp:TextBox ID="txt_SoLuongToiDa" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                    
                       <tr>
                        <td style="width: 34%">
                          Hình ảnh</td>
                        <td style="width: 70%">
                        <center>
                         <asp:Image ID="img_no" runat="server" Width="100" Height="100" ImageUrl="~/Photos/Thumb/no_images.jpg" />
                            </center>
                            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand" OnItemDataBound="Repeater1_ItemDataBound">
                                 <HeaderTemplate>
                                     <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                                        <tr>
                                 </HeaderTemplate>
                                    
                                  <ItemTemplate>
                                    <td align="center">
                                       <table>
                                        <tr>
                                            <td>
                                               <asp:Image ID="img_HinhAnh" runat="server" Width="100" Height="100" />
                                            </td>
                                        </tr>
                                         <tr>
                                            <td align="center">
                                                    
                                                <asp:CheckBox ID="cb_Xoa" runat="server" />
                                                <asp:HiddenField ID="hf_id" Value='<%#Eval("MaHA") %>' runat="server" />
                                            </td>
                                       </tr>
                                       </table> 
                                       
                                        
                                            
                                    </td>
                                 
                                  
                                  </ItemTemplate> 
                                
                                   <FooterTemplate>
                                        </tr>
                                        </table>
                                   </FooterTemplate>
                            </asp:Repeater>
                            <cc1:PagerV2_8 ID="pagerHinh" runat="server" OnCommand="pagerHinh_Command" />
                            <div id="attachment" class="attachment" style="display:none;">
<div id="dropcap" class="dropcap">1</div>
<div class="labels">Hình:<br/>Chú thích:</div>
<asp:FileUpload ID="file" runat="server" />
<a href="#" onclick="javascript:removeFile(this.parentNode.parentNode,this.parentNode);">Xóa</a>
<br/> <input id="desc" name="desc" type="text" maxlength="55" size="55"/>
</div>

<div id="attachments" class="container">
<br/><a id="addupload" href="javascript:addUpload(10, 'desc', 'file')">Thêm</a> |
    <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click">Xóa</asp:LinkButton><br/><br/>

<span id="attachmentmarker">&nbsp;</span></div>
 
                            
                        </td>
                    </tr>
                       <tr>
                    <td style="width:30%">Mô tả</td>
                    <td style="width:70%">
                        <FTB:FreeTextBox ID="ftb_MoTa" runat="server">
                        </FTB:FreeTextBox>
                    </td>
                </tr> 
                
                 <tr>
                    <td style="width:30%">
                        Quy định sử dụng</td>
                    <td style="width:70%">
                        <FTB:FreeTextBox ID="ftb_QuyDinhSP" runat="server">
                        </FTB:FreeTextBox>
                    </td>
                </tr> 
                
                      <tr>
                    <td style="width:30%">
                      Địa điểm sử dụng</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_DiaDiemSuDung" runat="server"></asp:TextBox>
                       <center> &nbsp;</center>
                       </td>
                </tr> 
                 <tr>
                    <td style="width:30%">Bản đồ</td>
                    <td style="width:70%">
                       <asp:FileUpload ID="fu_BanDo" runat="server" />
                    <asp:Image ID="img_BanDo" runat="server" Width="100px" Height="100px" /></td>
                </tr>   
                      <tr>
                    <td style="width:30%">
                       Chiết khấu</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_ChietKhau" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                      <tr>
                    <td style="width:30%">
                        Tình trạng sản phẩm</td>
                    <td style="width:70%">
                        <asp:DropDownList ID="ddl_TinhTrangSP" runat="server">
                        </asp:DropDownList> 
                    </td>
                </tr> 
                
                   <tr>
                    <td style="width:30%">
                        Nhân viên</td>
                    <td style="width:70%">
                        <asp:DropDownList ID="ddl_NhanVien" runat="server">
                        </asp:DropDownList> 
                    </td>
                </tr> 
                <tr>
                    <td colspan="2" align="center"><asp:Button ID="btn_Add" runat="server" Text="Cập nhật" OnClick="btn_Add_Click"/></td>
                </tr>            
                </table>
            </div>
        </div>
    </div>
</asp:Content>

